package com.yunfangdata.mapper;

import com.yunfangdata.domain.DataDict;
import com.yunfangdata.query.QueryObject;

import java.util.List;

public interface DataDictMapper {

    int deleteByPrimaryKey(Long id);

    int insert(DataDict record);

    DataDict selectByPrimaryKey(Long id);

    List<DataDict> selectAll();

    int updateByPrimaryKey(DataDict record);

    /**
     * 根据条件 查询出的数据字典数量
     * @param qo
     * @return
     */
    int queryForCount(QueryObject qo);

    /**
     * 根据条件查询出 相应的数据字典信息集合
     * @param qo
     * @return
     */
    List<DataDict> queryForList(QueryObject qo);

    List<DataDict>  queryByParentId(Long id);

    List<DataDict> selectDataDictByperentId(Long parentId);

    List<DataDict> queryByParentIdIsNull();

    List<DataDict> queryByParentIdChildren(Long parentId);
}